<?php if (!defined('THINK_PATH')) exit();?><html xmlns="http://www.w3.org/1999/html">
<!-- 新闻列表 -->
<head>
    <link href="/origin/Public/style/basic.css" rel="stylesheet" type="text/css" />
    <link href="/origin/Public/style/news.css" rel="stylesheet" type="text/css" />
    <link type="text/css" rel="stylesheet" href="/origin/Public/style/skin2.css" />
    <link type="text/css" rel="stylesheet" href="/origin/Public/style/tableborder.css" />
    <script type="text/javascript">
        window.UEDITOR_HOME_URL = "/origin/Public/ueditor/";
    </script>
    <script type="text/javascript" src="/origin/Public/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="/origin/Public/ueditor/ueditor.all.js"></script>
    <script type="text/javascript" src="/origin/Public/js/chkbox.js"></script>
    <script src="/origin/Public/js/goucha.js"></script>
</head>

<body>
<script type="text/javascript">
    window.onload=function(){
        chkBox('chkbox','tids[]');
        chagou('imgstatus','/origin');
    }
</script>
<form action="/origin/index.php/Admin/News/batDelClass" method="post">
    <table class="tableb">
        <tr class="tbtitle">
            <td colspan="4" class="tdsearch"> </td>
            <td><span class="rightop"><a href="/origin/index.php/Admin/News/addClass">添加分类</a></span></td>
        </tr>
        <tr class="contitle">
            <td><input type="checkbox" value="all" id="chkbox" />编号</td>
            <td>类别名称</td>
            <td>状态</td>
            <td>更新时间</td>
            <td>操作</td>
        </tr>
        <?php if(is_array($list)): foreach($list as $key=>$value): ?><tr class="content conline">
            <td><input type="checkbox" name="tids[]" value="<?php echo ($value["tid"]); ?>" /><?php echo ($value["tid"]); ?></td>
            <td><?php echo ($value["sortname"]); ?></td>
            <td class="imgstatus"><?php echo ($value["status"]); ?></td>
            <td><?php echo ($value["updatetime"]); ?></td>
            <td><a href="/origin/index.php/Admin/News/editClass/<?php echo ($value["tid"]); ?>">编辑</a>&nbsp;&nbsp;<a href="/origin/index.php/Admin/News/delOneClass/<?php echo ($value["tid"]); ?>" onclick="javascript:return confirm('你确定要删除该分类吗？')">删除</a></td>
        </tr><?php endforeach; endif; ?>
        <tr class="content conline">
            <td><input type="submit" value="批量删除" name="goBatDel" /></td>
        </tr>
    </table>
</form>
<p>
<div id="page">
    <?php echo ($page); ?>
</div>
</p>
<style type="text/css">
    div#page div{
        height: 100px;
        text-align: center;
        font-size: 25px;
    }

    div#page a{
        font-size: 25px;
    }
</style>


</body>
</html>